/*
 * @Author: Lin Ming
 * @Date: 2021-02-23 11:39:04
 * @LastEditors: Lin Ming
 * @LastEditTime: 2021-02-25 19:47:22
 * @FilePath: \vue-zheye\src\main.ts
 */
import { createApp } from 'vue'
import router from './router/index'
import App from './App.vue'
import './assets/styles/rest.css'
import 'element-plus/lib/theme-chalk/index.css'
import { components, plugins } from './plugins/element'
const app = createApp(App)
// Element Plus
// 按需导入Element Plus组件和插件
components.forEach(component => {
  app.component(component.name, component)
})
plugins.forEach(plugin => {
  app.use(plugin)
})

app.use(router)
app.mount('#app')
